{% extends 'app01/base.html' %}

{% block content %}
<p><a href="{% url "app01:topic" topic.id %}">{{ topic }}</a></p>

    <p>添加新主题:</p>
    <form action="" method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <button name="submit">保存</button>
    </form>
{% endblock content %}